package com.itheima.Test;

public class Test002 {
    public static void main(String[] args) {
        /*
        请使用“同步代码块”改写1.1的程序，保证运行结果的正确。
         */
        AAATest002 aa = new AAATest002();
        Thread mt  = new Thread(aa);
        mt.setName("窗口一");
        mt.start();
        Thread mt2  = new Thread(aa);
        mt2.setName("窗口二");
        mt2.start();
        Thread mt3  = new Thread(aa);
        mt3.setName("窗口三");
        mt3.start();
    }
}
